package com.mars.basic.repository;

import com.mars.basic.convert.AdminUserConvert;
import com.mars.basic.allmain.entity.AdminUserEntity;

import com.mars.basic.allmain.po.AdminUser;
import com.mars.basic.repo.AdminUserRepo;
import com.mars.common.convert.IEntityPOConvert;
import com.mars.common.repository.SimplePoConvertEntityRepository;

import com.rp.spring.jpa.GenericJpaRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class AdminUserRepository extends SimplePoConvertEntityRepository<AdminUserEntity, AdminUser,Integer> {
    @Autowired
    AdminUserRepo userRepo ;
    @Autowired AdminUserConvert convert;

    @Override
    public GenericJpaRepository<AdminUser, Integer> repo() {
        return userRepo;
    }

    @Override
    public IEntityPOConvert<AdminUserEntity, AdminUser> convert() {
        return convert;
    }
}
